<?php 
	//start the session
	session_start(); 
?>

<!-- login.php view -->

<html>
	<head>
		<title>Login Page</title>
		<link rel="stylesheet" type="text/css" href="css/style.css" />
	</head>
	
	<body>
		<div id="wrapper">
			<div id="banner"><img src="images/bannerv0.jpg" alt="header graphic"></div>
			<div id="wrapper_links"><br /></div>
			<div id="wrapper_body">
	
				<h3>Please enter your login details</h3>
		
				<form action="processes/users_validation.php" method="POST">
					Username:<br /><input type="text" name="username" id="username" /><br />
					Password:<br /><input type="password" name="pword" id="pword" /><br />
					<input type="submit" name="submit" id="submit" value="Submit" />
					<p><a href="registration_form.php">Register Now</a></p>
				</form>
					
				<?php 
					//outputs the error/confirmation message from the user_validation.php script on this page
					if(isset($_SESSION['message']))
        			{
						echo $_SESSION['message'] . '<br />';
            
						//end session
						session_destroy();
        			}
    			?>

			</div>
		</div>	
	</body>
</html>